import httpInstance from '@/utils/http'

// 提交订单
export const submitOrderAPI = (data) => {
  const { goods, addressId } = data
  return httpInstance({
    url:'/member/order',
    method:'POST',
    data:{
      deliveryTimeType:1,
      payType:1,
      payChannel:1,
      buyerMessage:'',
      goods,
      addressId
    }
  })
}

// 获取订单详情
export const getOrderDetailAPI = (id) => httpInstance.get(`/member/order/${id}`)
